<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>g-dialog 测试实例</title>
<script src="../node_modules/vue/dist/vue.global.prod.js"></script>
<link rel="stylesheet" href="../node_modules/element-plus/dist/index.css">
<script src="../node_modules/element-plus/dist/index.full.min.js"></script>
<script src="../dist/gdialog.umd.js"></script>
<link rel="stylesheet" href="../dist/gdialog.css" />
</head>
<body>
<div id="app">
  <div>
    <button onclick="testCall()">测试调用</button>
    <button onclick="testCall1()">测试调用</button>
  </div>
</div>

<script>
  let callCount = 0;
  
  function testCall() {
    callCount++;
    console.log(`方法被调用 ${callCount} 次`);
    window.GDialog.openDialog({dialogName: 'test'})
  }
  function testCall1() {
    callCount++;
    console.log(`方法被调用 ${callCount} 次`);
    window.GDialog.openDialog({dialogName: 'CharacterDialog'})
  }
</script>
</body>
</html>